
import React from 'react';

import { Layout,  theme } from 'antd';
import CommonAside from '../components/commonAside'
import CommonHeader from '../components/commonHearder';
const { Content } = Layout;
const Main = () => {
      // const [collapsed, setCollapsed] = useState(false);
  const {
    token: { colorBgContainer, borderRadiusLG },
  } = theme.useToken();
    // 使用括号包裹JSX返回值
 return (
    <Layout className="main-container">
      <CommonAside/>
      <Layout>
        <CommonHeader/>
        <Content
          style={{
            margin: '24px 16px',
            padding: 24,
            minHeight: 280,
            background: colorBgContainer,
            borderRadius: borderRadiusLG,
          }}
        >
          Content
        </Content>
      </Layout>
    </Layout>
  );
};

export default Main;